package com.flashcards.views;

import com.flashcards.auth.UserInfo;
import com.flashcards.repository.UserInfoRepository;

public class ViewDispatcher {
    private UserInfoRepository repository;

    public ViewDispatcher(UserInfoRepository repository) {
        this.repository = repository;
    }

    public Class targetActivity() {
        UserInfo currentUser = this.repository.lookup();
        return currentUser.targetActivity();
    }
}
